﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003ED RID: 1005
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DressAvatarCsReq : IMessage<DressAvatarCsReq>, IMessage, IEquatable<DressAvatarCsReq>, IDeepCloneable<DressAvatarCsReq>, IBufferMessage
	{
		// Token: 0x17000CEB RID: 3307
		// (get) Token: 0x06002D08 RID: 11528 RVA: 0x0007C64C File Offset: 0x0007A84C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DressAvatarCsReq> Parser
		{
			get
			{
				return DressAvatarCsReq._parser;
			}
		}

		// Token: 0x17000CEC RID: 3308
		// (get) Token: 0x06002D09 RID: 11529 RVA: 0x0007C653 File Offset: 0x0007A853
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DressAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000CED RID: 3309
		// (get) Token: 0x06002D0A RID: 11530 RVA: 0x0007C665 File Offset: 0x0007A865
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DressAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x06002D0B RID: 11531 RVA: 0x0007C66C File Offset: 0x0007A86C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressAvatarCsReq()
		{
		}

		// Token: 0x06002D0C RID: 11532 RVA: 0x0007C674 File Offset: 0x0007A874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressAvatarCsReq(DressAvatarCsReq other) : this()
		{
			this.equipmentUniqueId_ = other.equipmentUniqueId_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002D0D RID: 11533 RVA: 0x0007C6A5 File Offset: 0x0007A8A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressAvatarCsReq Clone()
		{
			return new DressAvatarCsReq(this);
		}

		// Token: 0x17000CEE RID: 3310
		// (get) Token: 0x06002D0E RID: 11534 RVA: 0x0007C6AD File Offset: 0x0007A8AD
		// (set) Token: 0x06002D0F RID: 11535 RVA: 0x0007C6B5 File Offset: 0x0007A8B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EquipmentUniqueId
		{
			get
			{
				return this.equipmentUniqueId_;
			}
			set
			{
				this.equipmentUniqueId_ = value;
			}
		}

		// Token: 0x17000CEF RID: 3311
		// (get) Token: 0x06002D10 RID: 11536 RVA: 0x0007C6BE File Offset: 0x0007A8BE
		// (set) Token: 0x06002D11 RID: 11537 RVA: 0x0007C6C6 File Offset: 0x0007A8C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x06002D12 RID: 11538 RVA: 0x0007C6CF File Offset: 0x0007A8CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DressAvatarCsReq);
		}

		// Token: 0x06002D13 RID: 11539 RVA: 0x0007C6DD File Offset: 0x0007A8DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DressAvatarCsReq other)
		{
			return other != null && (other == this || (this.EquipmentUniqueId == other.EquipmentUniqueId && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002D14 RID: 11540 RVA: 0x0007C71C File Offset: 0x0007A91C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EquipmentUniqueId != 0U)
			{
				num ^= this.EquipmentUniqueId.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002D15 RID: 11541 RVA: 0x0007C774 File Offset: 0x0007A974
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002D16 RID: 11542 RVA: 0x0007C77C File Offset: 0x0007A97C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002D17 RID: 11543 RVA: 0x0007C788 File Offset: 0x0007A988
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EquipmentUniqueId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.EquipmentUniqueId);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002D18 RID: 11544 RVA: 0x0007C7E4 File Offset: 0x0007A9E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EquipmentUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EquipmentUniqueId);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002D19 RID: 11545 RVA: 0x0007C83C File Offset: 0x0007AA3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DressAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EquipmentUniqueId != 0U)
			{
				this.EquipmentUniqueId = other.EquipmentUniqueId;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002D1A RID: 11546 RVA: 0x0007C88C File Offset: 0x0007AA8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002D1B RID: 11547 RVA: 0x0007C898 File Offset: 0x0007AA98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.EquipmentUniqueId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040011DF RID: 4575
		private static readonly MessageParser<DressAvatarCsReq> _parser = new MessageParser<DressAvatarCsReq>(() => new DressAvatarCsReq());

		// Token: 0x040011E0 RID: 4576
		private UnknownFieldSet _unknownFields;

		// Token: 0x040011E1 RID: 4577
		public const int EquipmentUniqueIdFieldNumber = 9;

		// Token: 0x040011E2 RID: 4578
		private uint equipmentUniqueId_;

		// Token: 0x040011E3 RID: 4579
		public const int AvatarIdFieldNumber = 10;

		// Token: 0x040011E4 RID: 4580
		private uint avatarId_;
	}
}
